<%--
  Created by IntelliJ IDEA.
  User: 73786
  Date: 2021/4/18
  Time: 10:52
  To change this template use File | Settings | File Templates.
--%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>班级表</title>
    <link href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">


</head>
<body>
<div class="container">
    <div class="row clearfix">
        <div class="row">
            <div class="col-md-4 column">
                <a class="btn btn-primary" href="${pageContext.request.contextPath}/sclass/toAddSclass">添加班级信息</a>
                <a class="btn btn-primary" href="${pageContext.request.contextPath}/sclass/allSclass">显示全部班级</a>
            </div>
            <div class="col-md-6 column">
<%--                <form class="form-inline" action="#" method="post" style="float: right">--%>
<%--                    <input type="text" name="" class="form-control" placeholder="请输入要查询的班级名称" />--%>
<%--                    <input type="submit" value="查询" class="btn btn-primary" />--%>
<%--                </form>--%>
            </div>
        </div>
    </div>

    <div class="row clearfix">
        <div class="col-md-10 column">
            <table class="table table-hover table-striped">
                <thead>
                <tr>
                    <th>班级id</th>
                    <th>班级</th>
                    <th>人数</th>
                    <th>操作</th>
                </tr>
                </thead>
                <!--                foreach-->
                <tbody>
                <c:forEach var="sclass" items="${sclassList}">
                    <tr>
                        <td>${sclass.classid}</td>
                        <td>${sclass.classname}</td>
                        <td>${sclass.scounts}</td>
                        <td>
                            <a href="${pageContext.request.contextPath}/sclass/toUpdateSclass?classid=${sclass.classid}">修改</a>
                            &nbsp; | &nbsp;
                            <a href="${pageContext.request.contextPath}/sclass/deleteSclass?classid=${sclass.classid}">删除</a>
                        </td>
                    </tr>
                </c:forEach>
                </tbody>
            </table>
        </div>
    </div>

</div>

</body>
</html>
